<!--
 * @Author: wanglidong
 * @Date: 2022-10-31 17:40:59
 * @LastEditors: wanglidong
 * @LastEditTime: 2022-12-08 16:26:48
 * @Description:
 * @FilePath: \lowcode-front\src\views\homePage\components\cornerCard.vue
-->
<template>
  <div class="corner_card">
    <div class="card_head" :class="{noborder:borderFlag}">
      <div class="circle"></div>
      <slot name="head"></slot>
    </div>
    <div class="card_body" :style="styleObj">
      <slot name="content"></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: 'cornerCard',
  props: {
    styleObj: {
      type: String,
      default: '',
    },
    borderFlag: {
      type: Boolean,
      default: false,
    },

  },
}
</script>
<style lang="scss" scoped>
@import "~@/assets/styles/function.scss";
.corner_card {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 15px;
  display: flex;
  flex-direction: column;

  .card_head {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 1px solid #f4f4f8;
    /*padding-left: 24px;*/
    margin-left: 24px;
    margin-right: 24px;
    height: 57px;
    position: relative;
    .title {
      width: 100%;
    }
  }
  .noborder {
    border-bottom: 0px;
  }
  .circle {
    width: 4px;
    height: 4px;
    background: #2660d6;
    border-radius: 0px;
    margin-right: 10px;
  }
  .card_body {
    height: calc(100% - 57px);
    padding-top: 20px;
    position: relative;
  }
}
</style>
